#include"pro.h"
#include<stdio.h>
#include<unistd.h>
#include<string.h>
#include<iostream>
#define COUNTS 100
#define PATTERN '='
void processing()
{
    int nums=0;
    std::cin>>nums;
    int count=0;
    char ass[COUNTS+1];
    memset(ass,'\0',sizeof(ass));
    while(count<=100)
    {
        printf("[%-100s][%d%%]\r",ass,count);
        fflush(stdout);
        usleep(nums*10000);
        if(count-1>=0)
            ass[count-1]=PATTERN;
        if(count==99)
            ass[count]=PATTERN;
        else
            ass[count]='>';
        count++;
    }
    printf("\n");
}
